<?php

	if (!isset($siteTitle)) { require('../../config.php');}


  echo '<h1>'. $siteTitle . ' Admin</h1>';

  echo "\n\n";

  echo '<div id="navigation">';

  //echo '<a href="/" title="Home Page">Home Page</a>';
  echo '<a href="'.$wwwroot.'" title="Home Page">Home Page</a>';

  echo ' | ';

  if ($thisPage == "create") {
    echo '<strong>Create/Edit Page</strong>';
  } else {
    echo '<a href="create.php" title="Create/Edit Page">Create/Edit Page</a>';
  }

  echo ' | ';

  if ($thisPage == "delete") {
    echo '<strong>Delete a Page</strong>';
  } else {
    echo '<a href="delete.php" title="Delete a Page">Delete a Page</a>';
  }  

  echo ' | ';

  if ($thisPage == "upload") {
    echo '<strong>Upload an Image</strong>';
  } else {
    echo '<a href="upload.php" title="Upload an Image">Upload an Image</a>';
  }

  echo ' | ';

  if ($thisPage == "deleteimage") {
    echo '<strong>Delete an Image</strong>';
  } else {
    echo '<a href="deleteimage.php" title="Delete an Image">Delete an Image</a>';
  }

  echo ' | ';

  if ($thisPage == "order_pix") {
    echo '<strong>Order Images</strong>';
  } else {
    echo '<a href="order_pix.php" title="Order Images">Order Images</a>';
  }

  echo "<br />";

  if ($thisPage == "order_menu") {
    echo '<strong>Order Menu</strong>';
  } else {
    echo '<a href="order_menu.php?field=1&delim=%20&file=../includes/menu.php" title="Order Menu">Order Menu</a>';
  }

  echo ' | ';
  
  /*if ($thisPage == "addsearch") {
    echo '<strong>Add to Search</strong>';
  } else {
    echo '<a href="addsearch.php" title="Add to Search">Add to Search</a>';
  }

  echo ' | ';*/

  /*if ($thisPage == "searchindex") {
    echo '<strong>Edit Search</strong>';
  } else {
    echo '<a href="searchindex.php" title="Edit Search">Edit Search</a>';
  }

  echo "<br />";*/

  if ($thisPage == "editTxt") {
    echo '<strong>Edit Text File</strong>';
  } else {
    echo '<a href="editTxt.php" title="Edit Text Files">Edit Text Files</a>';
  }
  
  echo ' | ';
  
  if ($thisPage == "categorize") {
    echo '<strong>Categorize</strong>';
  } else {
    echo '<a href="categorize.php" title="Categorize">Categorize</a>';
  }
  
  echo ' | ';

  if ($thisPage == "extra") {
    echo '<strong>Extra</strong>';
  } else {
    echo '<a href="extra.php" title="Extra">Extra</a>';
  }
  
  echo ' | ';
  
  if ($thisPage == "changetheme") {
    echo '<strong>Change Theme</strong>';
  } else {
    echo '<a href="changetheme.php" title="changetheme">Change Theme</a>';
  }
  
  echo ' | ';
    
  if ($thisPage == "adminHelp")
  {
    echo '<strong>Admin Help</strong>';
  }
  else
  {
    echo '<a href="adminHelp.php" title="adminHelp">Admin Help</a>';
  }
  
  echo ' | ';

  if ($thisPage == "logout") {
    echo '<strong>Logout</strong>';
  } else {
    echo '<a href="logout.php" title="logout">Logout</a>';
  }
  echo "\n";

  echo '</div>';

?>
